Examples 18-1 to 18-25 are in the DependencyPropertyExample project

 Example 18-1 is in MyCustomControl.cs
 Example 18-2 is in Window1.xaml
 Example 18-3 is in ElementWithAttachedProp.cs
 Examples 18-4 and 18-5 are in Window1.xaml
 Example 18-6 is in ElementWithAttachedProp.cs
 Example 18-7 is in MyWindow.xaml.cs
 Examples 18-8 and 18-9 are in Window1.xaml.cs
 Example 18-10 is in Star.cs
 Example 18-11 is in ClockControl.cs
 Examples 18-12 and 18-13 are in HandleEvent.xaml.cs
 Example 18-14 is in ClockControl.cs
 Example 18-15 is in HandleEvent.xaml
 Example 18-16 is in MyCustomControl.cs
 Example 18-17 is in Window1.xaml
 Example 18-18 is in themes\generic.xalm
 Example 18-19 is in ControlWithNamedParts.cs
 Example 18-20 is in MyControl.cs
 Example 18-21 and 18-22 are in Window1.xaml
 Example 18-23 and 18-24 are in ControlWithPlaceholder.cs
 Example 18-25 is in Window1.xaml


Examples 18-26 and 18-27 are in the CustomControlExample project

 Example 18-26 is in themes\generic.xaml
 Example 18-27 is in MyCustomControl.cs
 Example 18-28 is in CustomElement.xaml and CustomElement.xaml.cs
 Example 18-29 is in HostUserControl.xaml

Examples 18-30 is in ErsatzUserControl

Examples 18-31 to 18- are in AdornerExample

 Example 18-31 is in BoxingAdorner.cs
 Example 18-32 is in Window1.xaml and Window1.xaml.cs
 Example 18-33 is in UseAdornerDecorator.xaml
